#include "comm.hpp"
int main()
{
    int shmid = CreateShm();
    DEBUG("create shm done");

    char* shmaddr = (char*)shmat(shmid, nullptr, 0);
    DEBUG("attach shm done, shmaddr: 0x%x", shmaddr);

    while(true)
    {
        cout << "client says@ " << shmaddr << endl;
        sleep(1);
    }

    shmdt(shmaddr);
    shmctl(shmid, IPC_RMID, nullptr);


    return 0;
}